package negModel;

public abstract class ParteAerodinamica extends Parte{

	private int aerodinamia;
	
	public void setAerodinamia(int aerodinamia) {
		this.aerodinamia = aerodinamia;
	}
	public int getAerodinamia() {
		return aerodinamia;
	}
	
	public void agregarMejora(Vehiculo v) {
		v.incrementarAerodinamia(this.getAerodinamia());
		v.incrementarVelMaxima(this.aportevmax());
		
	}
	
	public void sacarMejora(Vehiculo v){
		v.decrementarAerodinamia(this.getAerodinamia());
		v.decrementarVelMaxima(this.aportevmax());
	}
	
}
